package com.inspinia.upms.common.model.org;

import com.inspinia.base.pagination.PageQueryVo;

import java.io.Serializable;

/**
 * 组织机构vo
 * Created by veblen on 2016/8/24.
 */
public class UpmsOrganizationVo extends PageQueryVo implements Serializable {

    /**
     * 默认的图标样式
     */
    public static final String DEFAULT_ICON = "icon-standard-building";

    /**
     * 根节点的图标
     */
    public static final String ROOT_ICON = "icon-standard-house";

    private Long id;

    private Long pid;

    private String name;

    private Integer weights;

    private Integer lvl; //等级

    private String desc;

    /**
     * 省id
     */
    private Long provinceId;

    /**
     * 市id
     */
    private Long cityId;

    /**
     * 区县id
     */
    private Long countyId;

    /**
     * 省id
     */
    private String provinceName;

    /**
     * 市id
     */
    private String cityName;

    /**
     * 区县id
     */
    private String countyName;

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getCountyId() {
        return countyId;
    }

    public void setCountyId(Long countyId) {
        this.countyId = countyId;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    public void setDefaultIcon() {
        if (lvl == 0) {
            this.icon = ROOT_ICON;
        } else {
            this.icon = DEFAULT_ICON;

        }
    }

    /**
     * icon图标
     */
    private String icon;

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {

        this.icon = icon;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getWeights() {
        return weights;
    }

    public void setWeights(Integer weights) {
        this.weights = weights;
    }

    public Integer getLvl() {
        return lvl;
    }

    public void setLvl(Integer lvl) {
        this.lvl = lvl;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
